package com.ztmg.water.mapper.apartment;

import com.ztmg.water.dto.apartment.ApartmentInfoDTO;
import com.ztmg.water.model.apartment.ApartmentInfo;
import com.ztmg.water.model.apartment.ApartmentInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ApartmentInfoMapper {
    long countByExample(ApartmentInfoExample example);

    int deleteByExample(ApartmentInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ApartmentInfo record);

    int insertSelective(ApartmentInfo record);

    List<ApartmentInfo> selectByExample(ApartmentInfoExample example);

    ApartmentInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ApartmentInfo record, @Param("example") ApartmentInfoExample example);

    int updateByExample(@Param("record") ApartmentInfo record, @Param("example") ApartmentInfoExample example);

    int updateByPrimaryKeySelective(ApartmentInfo record);

    int updateByPrimaryKey(ApartmentInfo record);

    int decreaseFloorNumsById(ApartmentInfoDTO dto);

    int addFloorNumsById(ApartmentInfoDTO dto);
}